package org.jeecg.modules.tls.csmg.csnote.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jeecg.modules.tls.csmg.csnote.entity.CsNote;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.tls.csmg.viewmodel.note.PrivateNoteVM;
import org.jeecg.modules.tls.csmg.viewmodel.note.PublicNoteVM;

import java.util.List;

/**
 * @Description: cs_note 笔记功能
 * 1添加笔记
 *      userId,content,sectionId,playbackTime
 * 2修改笔记
 *      id,content
 *3删除笔记
 *      id
 *4查询笔记
 *      sectionId
 * @Author: jeecg-boot
 * @Date:   2022-08-05
 * @Version: V1.0
 */
public interface ICsNoteService extends IService<CsNote> {


    /*
     * @description: 修改笔记
     * @author: GGB
     * @date: 2022/9/7 13:38
     * @param: id
     * @param: content
     * @return: Boolean
     **/
    Boolean updateNote(String id,String content,Integer hasPublic);


    /*
     * @description: 笔记列表
     * @author: GGB
     * @date: 2022/9/7 13:40
     * @param: sectionId
     * @param: userId
     * @return: List<CsNote>
     **/
    List<PrivateNoteVM> getPrivateNoteList(String sectionId, String userId);

    IPage<PublicNoteVM> getPublicNotePage(String sectionId, String userId,Integer pageIndex,Integer pageSize);
}
